package com.xueyi.system.parcel.domain.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;
import com.alibaba.fastjson.JSONArray;

/**
 * 地块管理 持久化对象
 *
 * @author yanhe
 */
@TableName(value = "base_parcel_manager", excludeProperty = {"sort"}, autoResultMap = true)
public class BaseParcelPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 地块编码
     */
    @Excel(name = "地块编码")
    @TableField("code")
    private String code;

    /**
     * 地块图片
     */
    @Excel(name = "地块图片")
    @TableField("img")
    private String img;

    /**
     * 基地id
     */
    @Excel(name = "基地id")
    @TableField("area_id")
    private String areaId;

    /**
     * 基地名称
     */
    @Excel(name = "基地名称")
    @TableField("area_name")
    private String areaName;

    /**
     * 地块类型
     */
    @Excel(name = "地块类型")
    @TableField("type")
    private String type;

    /**
     * 地块属性
     */
    @Excel(name = "地块属性")
    @TableField("property")
    private String property;

    /**
     * 地块面积
     */
    @Excel(name = "地块面积")
    @TableField("area")
    private BigDecimal area;

    /**
     * 地块位置
     */
    @Excel(name = "地块位置")
    @TableField("location")
    private String location;

    /**
     * 环境数据
     */
    @Excel(name = "环境数据")
    @TableField("ambient_data")
    private String ambientData;

    /**
     * 水质报告
     */
    @TableField(value = "water_report", typeHandler = FastjsonTypeHandler.class)
    private JSONArray waterReport;

    /**
     * 环境报告
     */
    @TableField(value = "soil_report", typeHandler = FastjsonTypeHandler.class)
    private JSONArray soilReport;

    /**
     * 环境报告
     */
    @TableField(value = "affix", typeHandler = FastjsonTypeHandler.class)
    private JSONArray affix;

    /**
     * GIS地图
     */
    @Excel(name = "GIS地图")
    @TableField(value = "gis_map", typeHandler = FastjsonTypeHandler.class)
    private JSONArray gisMap;

    /**
     * 简介
     */
    @Excel(name = "简介")
    @TableField("intro")
    private String intro;

    /**
     * 内容
     */
    @Excel(name = "内容")
    @TableField("content")
    private String content;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    @TableField(exist = false)
    private String plantVariety;


    public JSONArray getWaterReport() {
        return waterReport;
    }

    public void setWaterReport(JSONArray waterReport) {
        this.waterReport = waterReport;
    }

    public JSONArray getSoilReport() {
        return soilReport;
    }

    public void setSoilReport(JSONArray soilReport) {
        this.soilReport = soilReport;
    }

    public JSONArray getAffix() {
        return affix;
    }

    public void setAffix(JSONArray affix) {
        this.affix = affix;
    }

    public String getPlantVariety() {
        return plantVariety;
    }

    public void setPlantVariety(String plantVariety) {
        this.plantVariety = plantVariety;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getProperty() {
        return property;
    }

    public void setArea(BigDecimal area) {
        this.area = area;
    }

    public BigDecimal getArea() {
        return area;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setAmbientData(String ambientData) {
        this.ambientData = ambientData;
    }

    public String getAmbientData() {
        return ambientData;
    }


    public void setGisMap(JSONArray gisMap) {
        this.gisMap = gisMap;
    }

    public JSONArray getGisMap() {
        return gisMap;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getIntro() {
        return intro;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
